package com.tensquare.friend.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @Author: Mr.Liu
 * @Description:
 * @Date: Created in 18:29 2020/5/27
 */
@FeignClient("tensquare-user")
public interface UserClient {
    /*
    * 增加粉丝数
    * @param userid
    * @param x
    * */
    @RequestMapping(value = "/user/incfans/{userid}/{x}",method = RequestMethod.POST)
    public void incFanscount(@PathVariable("userid") String userid,@PathVariable("x")int x);
    /*
     * 增加关注数
     * @param userid
     * @param x
     * */
    @RequestMapping(value = "/user/incfollow/{userid}/{x}",method = RequestMethod.POST)
    public void incfollowcount(@PathVariable("userid") String userid,@PathVariable("x")int x);
}
